package com.yyy.serviceImpl;

import com.yyy.dao.Tb_OrdreMapper;
import com.yyy.pojo.tb_order;
import com.yyy.service.Tb_OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Tb_OrderServiceImpl implements Tb_OrderService {
    @Autowired
    Tb_OrdreMapper tb_ordreMapper;
    @Override
    public List<tb_order> findAll() {
        return tb_ordreMapper.findAll();
    }

    @Override
    public int insertOne(tb_order tb_order) {
        return tb_ordreMapper.insertOne(tb_order);
    }

    @Override
    public tb_order findById(Integer id) {
        return tb_ordreMapper.findById(id);
    }

    @Override
    public int updateById(tb_order tb_order) {
        return tb_ordreMapper.updateById(tb_order);

    }

    @Override
    public int deleteById(Integer id) {
        return tb_ordreMapper.deleteById(id);
    }
}
